from django.conf.urls import include, url

from app.views import ArticleListView, ArticlePublishView, ArticleDetailView, ArticleEditView


urlpatterns = [
    url(r'^$', ArticleListView.as_view(), name='blog_index'),
    url(r'^article/publish$', ArticlePublishView.as_view(), name='article_publish'),
    url(r'^article/(?P<title_slug>[\w\-]+)/$', ArticleDetailView.as_view(), name='article_detail'),
    url(r'^article/(?P<title_slug>[\w\-]+)/edit$', ArticleEditView.as_view(), name='article_edit'),
]